#include <iostream>
#include <functional>

using namespace std;

void print(int a, int b, int c, int d)
{
    cout<<a<<endl;
    cout<<b<<endl;
    cout<<c<<endl;
    cout<<d<<endl;
}

void test(int a , int b, const function<void(int, int)> & func)
{
    func(a, b);
}

int main()
{
    print(1,2,3,4);

    //auto p = bind(print,std::placeholders::_1, std::placeholders::_2, 0, 0);
    //p(7,8);
    test(5, 6 ,bind(print, std::placeholders::_1, std::placeholders::_2, 0, 0));
}